import request from '@/utils/request'

// 密码登录
export function login (data) {
  return request({
    url: '/security/login',
    method: 'post',
    data
  })
}
// 浙政钉扫码登录
export function scanLogin (data) {
  return request({
    url: '/security/login/scan',
    method: 'post',
    data
  })
}

// 当前用户信息
export function getInfo (data) {
  return request({
    url: '/users/current'
  })
}
// 获取公共数据平台统一登录信息
export function unifiedLoginSend (data) {
  return request({
    url: '/security/login/iam/oidc',
    method:'post',
    data
  })
}
// 浙政钉扫码登录
export function updatePassword (data) {
  return request({
    url: '/users/password',
    method: 'put',
    data
  })
}
